body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}
.container {
    max-width: 600px;
    margin: 20px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.chat-message {
    display: flex;
    margin-bottom: 20px;
}
.chat-message .user {
    background-color: #DCF8C6;
    color: #333;
    padding: 10px;
    border-radius: 20px 0 20px 20px;
    max-width: 70%;
    margin-right: 20px;
    position: relative;
}
.chat-message .user:after {
    content: '';
    position: absolute;
    top: 0;
    left: 100%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px;
    border-color: transparent transparent transparent #DCF8C6;
}
.chat-message .gpt {
    background-color: #ECEFF1;
    color: #333;
    padding: 10px;
    border-radius: 0 20px 20px 20px;
    max-width: 70%;
    margin-left: 20px;
    position: relative;
}
.chat-message .gpt:after {
    content: '';
    position: absolute;
    top: 0;
    right: 100%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px;
    border-color: transparent #ECEFF1 transparent transparent;
}
.chat-input {
    display: flex;
    margin-top: 20px;
}
.chat-input input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 10px;
}
.chat-input button {
    padding: 10px 20px;
    background-color: #0084ff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.chat-input button:hover {
    background-color: #007bff;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin-right: 10px;
}
.user .avatar {
    background-image: url('user-avatar.jpg');
}
.gpt .avatar {
    background-image: url('gpt-avatar.jpg');
}